﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ServiceModel;

namespace yq.IService
{
    [ServiceContract]
    public interface IDepartment
    {
        /// <summary>
        /// 获取全部部门
        /// </summary>
        /// <returns></returns>
        [OperationContract]
        IList<yq.Model.Logic.DepartmentList> DepartmentAll();


        /// <summary>
        /// 添加部门
        /// </summary>
        /// <returns></returns>
        [OperationContract]
        yq.Dictionary.ReturnValue<string> AddDepartment(yq.Model.Logic.DepartmentList model);


        /// <summary>
        /// 编辑部门
        /// </summary>
        /// <returns></returns>
        [OperationContract]
        yq.Dictionary.ReturnValue<string> EditDepartment(yq.Model.Logic.DepartmentList model);


        /// <summary>
        /// 删除部门
        /// </summary>
        /// <returns></returns>
        [OperationContract]
        yq.Dictionary.ReturnValue<string> DelDepartment(string departmentId);
    }
}
